<? require_once 'menu.phtml'?>
<div class="span12 tasks well">
    <ul>
        <? foreach($this->tasks as $task) :?>
        <? /** @var $task Application_Model_Task */ ?>
        <li id="task-id-<?=$task->getTaskId(); ?>" class="<?= $task->getCssClass() ?> task ">
            <a>
                <div class="post-action">
                    <i title="В архив" class="icon-hdd" onclick="idea.taskToArchive(<?=$task->getTaskId()?>)"></i>
                    <i title="Редактировать" class="icon-pencil" onclick="idea.editTask(<?=$task->getTaskId()?>)"></i>
                    <i title="Удалить" class="icon-trash" onclick="idea.deleteTask(<?=$task->getTaskId()?>);"></i>
                </div>
                <div class="wrap-task-title" onclick="idea.getForm(<?=$task->getTaskId()?>, 'task', 'edit');">
                    <span><?= $task->getTaskTitle(); ?></span>
                </div>
            </a>
        </li>
        <? endforeach; ?>
    </ul>
</div>